<template>
  <div class="container">
    <div class="nav-container">
      <div class="nav">
        <router-link to="1">
          <img src="./imgs/cartoon.png" class="img-cartoon" />
          <span>哔哩哔哩漫画</span>
        </router-link>
        <router-link to="/Home">
          <span>主站</span>
        </router-link>
        <router-link to="/cartoon/homepage">
          <span>首页</span>
        </router-link>
        <router-link to="/cartoon/ComicClassify">
          <span>分类</span>
        </router-link>
        <router-link to="1">
          <span>更新</span>
        </router-link>
        <router-link to="1">
          <span>排行榜</span>
        </router-link>
        <div class="nav-title-right"></div>
        <div class="search">
          <input />
          <div class="icon-search"></div>
        </div>
        <router-link to="1">
          <span>下载App</span>
        </router-link>
        <router-link to="1">
          <span>历史</span>
        </router-link>
        <router-link to="1">
          <span>追漫</span>
        </router-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Nav",
};
</script>

<style lang="less" scoped>
.container {
  width: 100%;
  height: 100%;
  background-color: #fff;
}
.nav-container {
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-bottom: 1px solid #bebebe;

  position: fixed;
  z-index: 999;
}
.nav {
  width: 1260px;
  height: 50px;
  margin: 0 auto;
  padding-top: 20px;
  margin-bottom: 10px;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
}
.nav-title-left {
  width: 100px;
  height: 48px;
  margin-left: 0;
  background: #fff;
  display: flex;
}
span {
  font-size: 14px;
}
.img-cartoon {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  display: inline-block;
  vertical-align: middle;
}
.nav a {
  width: 100px;
  height: 48px;
  color: black;
  margin: 0px 5px;
  text-decoration: none;
  line-height: 48px;
  text-align: center;
}
a:hover {
  background-color: #bebebe;
}
a:first-child {
  width: 200px;
}

.nav-title-right {
  width: 380px;
  height: 48px;
  display: flex;
}
.search {
  height: 32px;
  background-color: #fff;
  margin: auto;
  position: relative;
  cursor: pointer;
  border-radius: 20px;
  padding-bottom: 20px;
  display: flex;
}
.search input {
  outline-style: none;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding-left: 7px;
  width: 180px;
}
.icon-search {
  position: absolute;
  width: 22px;
  height: 22px;
  right: 0;
  margin: 3px 6px;
  background-image: url(./imgs/search.png);
  background-size: 22px;
}
.login {
  /* border: 1px solid #0f1c3f; */
  width: 100px;
  height: 50px;
  text-align: center;
  padding: 5px;
}
.login img {
  width: 50px;
  border-radius: 50%;
}
</style>
